/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tbv_facturacionDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression fa_id_facturacion;
	public final StringExpression fa_consumidor;
	public final IntegerExpression fa_valor_facturable;
	
	public Tbv_facturacionDetachedCriteria() {
		super(orm.Tbv_facturacion.class, orm.Tbv_facturacionCriteria.class);
		fa_id_facturacion = new IntegerExpression("fa_id_facturacion", this.getDetachedCriteria());
		fa_consumidor = new StringExpression("fa_consumidor", this.getDetachedCriteria());
		fa_valor_facturable = new IntegerExpression("fa_valor_facturable", this.getDetachedCriteria());
	}
	
	public Tbv_facturacionDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.Tbv_facturacionCriteria.class);
		fa_id_facturacion = new IntegerExpression("fa_id_facturacion", this.getDetachedCriteria());
		fa_consumidor = new StringExpression("fa_consumidor", this.getDetachedCriteria());
		fa_valor_facturable = new IntegerExpression("fa_valor_facturable", this.getDetachedCriteria());
	}
	
	public Tbv_bitacora_maquinaDetachedCriteria createTbv_bitacora_maquinabm_id_bitacora_maquinaCriteria() {
		return new Tbv_bitacora_maquinaDetachedCriteria(createCriteria("tbv_bitacora_maquinabm_id_bitacora_maquina"));
	}
	
	public Tbv_facturacion uniqueTbv_facturacion(PersistentSession session) {
		return (Tbv_facturacion) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Tbv_facturacion[] listTbv_facturacion(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Tbv_facturacion[]) list.toArray(new Tbv_facturacion[list.size()]);
	}
}

